package org.maxkey.portal.core.authentication;

import lombok.*;
import org.apache.commons.lang3.StringUtils;
import org.apereo.cas.authentication.Credential;

import javax.validation.constraints.Size;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Credential for authenticating with a username and password.
 *
 * @author Scott Battaglia
 * @author Marvin S. Addison
 * @since 3.0.0
 */
@ToString()
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode
public class CurrentAccount implements java.io.Serializable{

    private static final long serialVersionUID = -700605081472810939L;

    public CurrentAccount(Integer id,String loginName,String name,String ip,String agent,Long lastLoginDate,String sessionId){
        this.loginName=loginName;
        this.ip=ip;
        this.agent=agent;
        this.lastLoginDate=lastLoginDate;
        this.sessionId=sessionId;
        this.id=id;
        this.name=name;
    }
    private String name;
    private String loginName;
    private String sessionId;
    private String ip;
    private String agent;
    private Long lastLoginDate;
    private Integer id;

}
